<template>
  <el-dialog
      :close-on-click-modal="false"
      title="Statistics"
      :visible.sync="dialogVisible"
      width="50%"
      top="10px"
      :before-close="handleClose">
    <pre>
      {{res}}
    </pre>
    <span slot="footer" class="dialog-footer">
    </span>
  </el-dialog>
</template>

<script>
export default {
  name: "Statistics",
  data() {
    return {
      res: null,
      dialogVisible:false,
    }
  },
  methods: {

    show(statistic) {
      this.dialogVisible = true
      this.res = JSON.stringify(statistic, null, "  ")
    },



    handleClose() {
      this.tableStore = []
      this.dialogVisible = false
    }
  }
}
</script>

<style scoped>

</style>
